package com.bum.guru.baucua.bo;

import java.security.SecureRandom;
import java.util.Arrays;
import java.util.Random;

public class Dice {
	private static Random	rnd	= new SecureRandom(String.valueOf(System.nanoTime()).getBytes());

	public static int[] roll() {
		int[] nums = new int[3];
		for (int times = 1 + rnd.nextInt(3), t = 0; t < times; t++) {
			for (int i = 0; i < 3; i++) {
				nums[i] = rnd.nextInt(6);
			}
		}
		return nums;
	}

	public static void main(String[] args) {
		String[] names = {
				"Gà", "Bầu", "Nai", "Tôm", "Cua", "Cá"
		};
		for (int i = 0; i < 500; i++) {
			int[] nums = roll();
			String[] a = {
					names[nums[0]], names[nums[1]], names[nums[2]]
			};
			System.out.println(Arrays.toString(a));
		}
	}
}
